/**
 * This file is part of MoChat.
 * @link     https://mo.chat
 * @document https://mochat.wiki
 * @contact  group@mo.chat
 * @license  https://github.com/mochat-cloud/mochat-java/blob/master/LICENSE
 */

package com.pactera.madp.cp.common.constant;

/**
 * @author: yushen.qi
 * @time: 2021/7/26 4:54 下午
 * @description 微信 api
 * <p>
 * 微信 api 访问地址: https://developers.weixin.qq.com/doc/
 */
public interface WxGZHApiConst {

    String API_BASE="https://api.weixin.qq.com/cgi-bin";

    /**
     * 获取公众号的授权信息
     *
     */
    String ACCESS_TOKEN=API_BASE+"/component/api_query_auth";

    /**
     * 网页微信公众号授权链接
     *
     */
    String OFFICIAL_ACCOUNT_URL="https://mp.weixin.qq.com/cgi-bin/componentloginpage";
    /**
     * 刷新授权令牌
     */
    String OFFICIAL_REFRESH_URL= API_BASE+"/component/api_authorizer_token";
    /**
     * 获取预授权码
     */
    String PRE_AUTH_CODE_URL=API_BASE+"/component/api_create_preauthcode";
    /**
     * 启动ticket推送服务
     */
    String START_PUSH_TICKET_URL =API_BASE+"/component/api_start_push_ticket";

    /**
     * 获取公众号素材列表
     */
    String GET_MATERIAL_URL =API_BASE+"/material/batchget_material";
    /**
     * 获取选择素材的详细信息
     */
    String GET_MATERIAL =API_BASE+"/material/get_material";

    /**
     * 拉取授权公众号列表
     */
    String API_GET_AUTHORIZER_LIST =API_BASE+"/component/api_get_authorizer_list";

    /**
     * 获取授权公众号列表信息
     */
    String API_GET_AUTHORIZER_INFO =API_BASE+"/component/api_get_authorizer_info";

    /**
     * 获取第三方token
     */
    String API_COMPONENT_TOKEN_URL =API_BASE+"/component/api_component_token";

    /**
     * 获取公众号token
     * https://api.weixin.qq.com/cgi-bin/token
     */
    String API_GET_TOKEN = API_BASE + "/token";
    /**
     * 公众号设置所属产业
     * https://api.weixin.qq.com/template/api_set_industry
     */
    String API_POST_SET_INDUSTRY = API_BASE + "/template/api_set_industry";
    /**
     * 微信公众号-发送模板消息
     * https://api.weixin.qq.com/cgi-bin/message/template/send?
     */
    String API_POST_GZH_MESSAGE = API_BASE + "/message/template/send?access_token=ACCESS_TOKEN";
    /**
     * 微信公众号 获取模板id
     * https://api.weixin.qq.com/cgi-bin/template/api_add_template?access_token=ACCESS_TOKEN
     */
    String API_POST_GZH_TEMPLATE = API_BASE + "/template/api_add_template";
    /**
     * 微信公众号 获取用户列表
     * https://api.weixin.qq.com/cgi-bin/user/get?access_token=ACCESS_TOKEN&next_openid=NEXT_OPENID
     */
    String API_GET_GZH_GETALLUSER = API_BASE + "/user/get";

    /**
     *微信公众号获取用户基本信息（包括UnionID机制）开发者可通过OpenID来获取用户基本信息
     * https://api.weixin.qq.com/cgi-bin/user/info?access_token=ACCESS_TOKEN&openid=OPENID&lang=zh_CN
     */
    String API_GET_GZH_USER_INFO = API_BASE + "/user/info?access_token=ACCESS_TOKEN&openid=OPENID&lang=zh_CN";
}
